package com.jobsys.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

import com.alibaba.druid.util.StringUtils;

public class MyStringUtils extends StringUtils {
	/*
	 * 日期格式
	 */
	public static final String DATE_KEY_STR = "yyMMddHHmmssSSS";

	/**
	 * keyID create
	 * 
	 * @return
	 */
	public static String keyIdFactory(Integer busiCode) {
		SimpleDateFormat df = new SimpleDateFormat(DATE_KEY_STR);
		String dateStr = df.format(new Date());

		String keyId = dateStr + busiCode + new Random().nextInt(1000);
		return keyId;
	}
}
